<?php
require_once("PHPMySQLiDatabaseClass/MysqliDb.php");
require_once("db_config.php");
$db_config = new dbConfig();
$db = new MysqliDb
(
    $db_config->host,
    $db_config->account,
    $db_config->pwd,
    'student'
);
$cols = Array("title","content","price","publish_time","type","end_time");
$db->where("title",$_GET['title']);
#SELECT title and content and price and end_time from task where id = $id;
$id = $db->getValue("task","id");
$db->where("id",$id);
//echo $id;
echo $db->jsonBuilder()->get("task",null,$cols);
?>